﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02001119 RID: 4377
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class SellItemScRsp : IMessage<SellItemScRsp>, IMessage, IEquatable<SellItemScRsp>, IDeepCloneable<SellItemScRsp>, IBufferMessage
	{
		// Token: 0x17003776 RID: 14198
		// (get) Token: 0x0600C3E9 RID: 50153 RVA: 0x00211D1D File Offset: 0x0020FF1D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<SellItemScRsp> Parser
		{
			get
			{
				return SellItemScRsp._parser;
			}
		}

		// Token: 0x17003777 RID: 14199
		// (get) Token: 0x0600C3EA RID: 50154 RVA: 0x00211D24 File Offset: 0x0020FF24
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return SellItemScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17003778 RID: 14200
		// (get) Token: 0x0600C3EB RID: 50155 RVA: 0x00211D36 File Offset: 0x0020FF36
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return SellItemScRsp.Descriptor;
			}
		}

		// Token: 0x0600C3EC RID: 50156 RVA: 0x00211D3D File Offset: 0x0020FF3D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SellItemScRsp()
		{
		}

		// Token: 0x0600C3ED RID: 50157 RVA: 0x00211D48 File Offset: 0x0020FF48
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SellItemScRsp(SellItemScRsp other) : this()
		{
			this.retcode_ = other.retcode_;
			this.returnItemList_ = ((other.returnItemList_ != null) ? other.returnItemList_.Clone() : null);
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600C3EE RID: 50158 RVA: 0x00211D94 File Offset: 0x0020FF94
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SellItemScRsp Clone()
		{
			return new SellItemScRsp(this);
		}

		// Token: 0x17003779 RID: 14201
		// (get) Token: 0x0600C3EF RID: 50159 RVA: 0x00211D9C File Offset: 0x0020FF9C
		// (set) Token: 0x0600C3F0 RID: 50160 RVA: 0x00211DA4 File Offset: 0x0020FFA4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x1700377A RID: 14202
		// (get) Token: 0x0600C3F1 RID: 50161 RVA: 0x00211DAD File Offset: 0x0020FFAD
		// (set) Token: 0x0600C3F2 RID: 50162 RVA: 0x00211DB5 File Offset: 0x0020FFB5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ItemList ReturnItemList
		{
			get
			{
				return this.returnItemList_;
			}
			set
			{
				this.returnItemList_ = value;
			}
		}

		// Token: 0x0600C3F3 RID: 50163 RVA: 0x00211DBE File Offset: 0x0020FFBE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as SellItemScRsp);
		}

		// Token: 0x0600C3F4 RID: 50164 RVA: 0x00211DCC File Offset: 0x0020FFCC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(SellItemScRsp other)
		{
			return other != null && (other == this || (this.Retcode == other.Retcode && object.Equals(this.ReturnItemList, other.ReturnItemList) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600C3F5 RID: 50165 RVA: 0x00211E1C File Offset: 0x0021001C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this.returnItemList_ != null)
			{
				num ^= this.ReturnItemList.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600C3F6 RID: 50166 RVA: 0x00211E71 File Offset: 0x00210071
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600C3F7 RID: 50167 RVA: 0x00211E79 File Offset: 0x00210079
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600C3F8 RID: 50168 RVA: 0x00211E84 File Offset: 0x00210084
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.returnItemList_ != null)
			{
				output.WriteRawTag(10);
				output.WriteMessage(this.ReturnItemList);
			}
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(88);
				output.WriteUInt32(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600C3F9 RID: 50169 RVA: 0x00211EE0 File Offset: 0x002100E0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this.returnItemList_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.ReturnItemList);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600C3FA RID: 50170 RVA: 0x00211F38 File Offset: 0x00210138
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(SellItemScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			if (other.returnItemList_ != null)
			{
				if (this.returnItemList_ == null)
				{
					this.ReturnItemList = new ItemList();
				}
				this.ReturnItemList.MergeFrom(other.ReturnItemList);
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600C3FB RID: 50171 RVA: 0x00211FA0 File Offset: 0x002101A0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600C3FC RID: 50172 RVA: 0x00211FAC File Offset: 0x002101AC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 10U)
				{
					if (num != 88U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.Retcode = input.ReadUInt32();
					}
				}
				else
				{
					if (this.returnItemList_ == null)
					{
						this.ReturnItemList = new ItemList();
					}
					input.ReadMessage(this.ReturnItemList);
				}
			}
		}

		// Token: 0x04004F0C RID: 20236
		private static readonly MessageParser<SellItemScRsp> _parser = new MessageParser<SellItemScRsp>(() => new SellItemScRsp());

		// Token: 0x04004F0D RID: 20237
		private UnknownFieldSet _unknownFields;

		// Token: 0x04004F0E RID: 20238
		public const int RetcodeFieldNumber = 11;

		// Token: 0x04004F0F RID: 20239
		private uint retcode_;

		// Token: 0x04004F10 RID: 20240
		public const int ReturnItemListFieldNumber = 1;

		// Token: 0x04004F11 RID: 20241
		private ItemList returnItemList_;
	}
}
